import { prop } from "@typegoose/typegoose"
import { ApiModelProperty } from "@nestjs/swagger"
// import { methods } from "../../../../../apps/admin/src/permission/methods.enum"
import { methods } from "../../../../apps/admin/src/permission/methods.enum"

export  class Permission {
  @ApiModelProperty({ description: '权限对应url 请求方法', example: methods.GET, enum: methods })
  @prop()
  method!: methods

  @ApiModelProperty({ description: '权限对应url 请求路径', example: '/banners', type: String })
  @prop()
  path!: String

  @ApiModelProperty({ description: '路由功能说明', example: '查看轮播图', type: String })
  @prop()
  message!: String
}


